<%@include file="aaa.jsp"%>
<html>
	<head>
		<title>My Moviebook</title>
		<link rel="stylesheet" type="text/css" href="moviebook.css" />
	</head>
	<body>
		<div id='master'>
		
			<table id="header">
				<tr id='header-top'>
					<td colspan='5'></td>
				</tr>
				<tr>
					<td class='horizontal-border'>
						
					</td>
					<td id='logo'>
						<img src='img/logo.png' id='logo' />
					</td>
					
<%
    if (user != null) {
%>

					<td id='welcom-cell'>
						<span>You are log as <span id='nickname'><%= user.getNickname() %></span></span>
					</td>
					<td id='logout-cell'>
						<a href="<%= userService.createLogoutURL(request.getRequestURI()) %>">
							<img src='img/logout.png' id='logout' />
						</a>
					</td>

<%
    }
    else {
%>
					<td id='welcom-cell'>
					</td>
					<td id='logout-cell'>
					</td>
<%
    }
%>

					<td class='horizontal-border'>
						
					</td>
				</tr>
				<tr id='header-bottom'>
					<td colspan='5'></td>
				</tr>
			</table>